<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script src="./js/axios.min.js"></script>
</head>
<script>
    function  axiosSend()
    {
        //{ method: GET | POST ,url:  ,data:}
        //then :响应的处理 ,回调函数
        // typeScript 箭头函数
        // (resp) ：参数代表：响应对象
        // lamda
        //Javascript :面向对象 {name : "",age:10} json 串
        // clss A{} new A()
        axios({method:"GET",url:"/axios-helloworld/AxiosServlet",data:{}})
            .then(
                 (resp) =>
                {
                    console.log("aaa",resp.data)
                }
        )
    }


</script>

<body>
<button onclick="axiosSend()">axios发送请求</button>
</body>
</html>